package com.lz.ovuola.repository.mysql.impl;

import java.util.List;

import org.springframework.cache.annotation.CacheConfig;
import org.springframework.stereotype.Repository;

import com.lz.ovuola.entity.VersionDo;
import com.lz.ovuola.repository.mysql.MyDynamicRepository;

@Repository("versionRepository")
@CacheConfig(cacheNames = "version")
public interface VersionRepository extends
		MyDynamicRepository<VersionDo, Integer> {

	// @CacheEvict(key = "#p0.id+'_table_user_cache'")
	VersionDo findOne(Integer id);

	@Override
	List<VersionDo> findAll();
}
